let body = document.querySelectorAll('body')

// function getProto(elem) {
//   const protos = []
//   if (typeof elem != 'object' || elem == null) return []
//   const proto = Object.getPrototypeOf(elem)
//   protos.push(proto, ...getProto(proto))
//   return protos
// }

// function getProto(elem, protos) {
//   if (typeof elem != 'object' || elem == null) return []
//   const proto = Object.getPrototypeOf(elem)
//   protos.push(proto)
//   getProto(proto, protos)
//   return protos
// }

// let protoLists = []

// getProto(body, protoLists)

// console.log(protoLists)

// let a = new Array(1, 3, 3)
// console.log(a.__proto__ == Array.prototype)

// let a = []

// console.log(null.__proto__)
// console.log(null instanceof Object)
// a.__proto__
// console.log(Object.getPrototypeOf(a))

// let a = [1, 2, 3]

// let b = ['a', 'b']
// a.push('9', '5')

// console.log(a)
